import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import app from './modules/appStore/app'
import settings from './modules/settingsStore/settings'
import userStore from '@/store/modules/userStore/userStore'
import freightStore from '@/store/modules/essentialDataStore/freightStore'
import organizationStore from '@/store/modules/essentialDataStore/organizationStore'
import carModelsStore from '@/store/modules/vehicleStore/carModelsStore'
import vehicleListStore from '@/store/modules/vehicleStore/vehicleListStore'
import carRegisterStore from '@/store/modules/vehicleStore/carRegisterStore'
import institutionsAreaStore from '@/store/modules/essentialDataStore/institutionsAreaStore'
import dashboardStore from '@/store/modules/dashboardStore/dashboardStore'
import deliverymanStore from '@/store/modules/employeeStore/deliverymanStore'
import orderStore from '@/store/modules/businessStore/orderStore'
import waybillStore from '@/store/modules/businessStore/waybillStore'
import transportStore from '@/store/modules/dispatchStore/transportStore'
import cargoStore from '@/store/modules/businessStore/cargoStore'
import goodsTypeStore from '@/store/modules/businessStore/goodsTypeStore'
import pickUpStore from '@/store/modules/dispatchStore/pickUpStore'
import deliveryStore from '@/store/modules/dispatchStore/deliveryStore'
import chauffeurStore from '@/store/modules/employeeStore/chauffeurStore'
import commonStore from '@/store/modules/commonStore/commonStore'
Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    app,
    settings,
    userStore,
    freightStore,
    organizationStore,
    carModelsStore,
    vehicleListStore,
    carRegisterStore,
    institutionsAreaStore,
    dashboardStore,
    deliverymanStore,
    orderStore,
    waybillStore,
    transportStore,
    cargoStore,
    goodsTypeStore,
    pickUpStore,
    deliveryStore,
    chauffeurStore,
    commonStore
  },
  getters
})

export default store
